<?php namespace App\Infra;

use App\Utils\ModelOperatorTrait;
use App\Models\HotelGuide;
class HotelGuideManager{
	use ModelOperatorTrait;

	public function getHotelGuides($conditions = null,$first = false,$union = []){
		return $this->findModel(HotelGuide::class,HotelGuide::query()->with($union),$conditions,$first);
	}

	public function updateHotelGuide($conditions = null,$data = null){
		$this->update(HotelGuide::class,HotelGuide::query(),$conditions,$data);
	}

	public function createHotelGuide($data){
		$this->create(HotelGuide::class,$data);
	}

	public function deleteHotelGuide($conditions = null){
		$this->delete(HotelGuide::class,HotelGuide::query(),$conditions);
	}
}